package com.jpa.yuan.test;

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;

/**
 * @ClassName: test2
 * @Description: TODO
 * @Author MrYuan
 * @Date: 2021/2/20 15:24
 * @Version 1.0
 */
public class test2 {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        int year = instance.get(Calendar.YEAR);

        instance.set(Calendar.MONTH, 6);
        Date time = instance.getTime();
//        System.out.println(year);
//        System.out.println(instance.get(Calendar.MONTH));
        Timer timera = new Timer();
//        timera.schedule();

    }
}